/***
 * @description Product model
 * @author zhang
 */

const mongoose = require('../db/db')

const Schema = mongoose.Schema({ // 商铺
    name: {
        type: String,
        required: true
    },
    imgUrl: String,
    sales: Number,
    expressLimit: {
        type: Number,
        default: 0
    },
    expressPrice: Number,
    slogan: String
}, { timestamps: true })

const Shop = mongoose.model('shop', Schema)

module.exports = Shop